/**
 * @author Huibin Zheng
 */
function SquareUnit()
{
	this.$super = BaseGraphic;
	this.$super();
	this.width;
	this.color;	
	
	
	this.draw = function(x,y,width,color)
	{
		this.x = x;
		this.y = y;
		this.width = width;
		this.color = color;
		if(this.context != null)
		{
			this.context.save();
			this.context.fillStyle = this.color;
			this.context.strokeStyle = "#000000";
			this.context.fillRect(this.x,this.y,this.width,this.width);
			this.context.strokeRect(this.x,this.y,this.width,this.width);
			this.context.restore();
		}
	}
}
SquareUnit.prototype = new BaseGraphic();
